package com.maxlen.common.constant;

public class CouponConstant {

    public enum CouponType {
        ALL(0, "后台发放"),
        MEMBER(1, "自行领取");

        private final Integer code;
        private final String msg;

        CouponType(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum CouponUseType {
        ALL(0, "全场通用"),
        CATEGORY(1, "指定分类"),
        PRODUCT(2, "指定商品");

        private final Integer code;
        private final String msg;

        CouponUseType(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum CouponPublish {
        NO_PUBLISH(0, "未发布"),
        PUBLISH(1, "已发布");

        private final Integer code;
        private final String msg;

        CouponPublish(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum CouponHistoryGetType {
        GIVE(0, "后台赠送"),
        GET(1, "主动领取");

        private final Integer code;
        private final String msg;

        CouponHistoryGetType(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum CouponHistoryUseType {
        NO_USE(0, "未使用"),
        USE(1, "已使用"),
        EXPIRE(2, "已过期");

        private final Integer code;
        private final String msg;

        CouponHistoryUseType(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
